package com.ruoyi.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.domain.entity.ProjectFee;
import com.ruoyi.project.domain.entity.ProjectGjpUser;
import com.ruoyi.project.mapper.ProjectFeeMapper;
import com.ruoyi.project.mapper.ProjectGjpUserMapper;
import com.ruoyi.project.service.IProjectFeeService;
import com.ruoyi.project.service.IProjectGjpUserService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ProjectGjpUserServiceImpl extends ServiceImpl<ProjectGjpUserMapper, ProjectGjpUser> implements IProjectGjpUserService {
    @Resource
    private ProjectGjpUserMapper projectGjpUserMapper;


    @Override
    @Async("taskExecutor") // 指定使用的线程池
    public Boolean syncData(List<ProjectGjpUser> list) {
        return this.saveBatch(list);
    }

    @Override
    public void deleteAll() {
        projectGjpUserMapper.deleteAll();
    }

}
